package com.htthorizon.system.task;

import cn.hutool.core.date.DateTime;
import com.htthorizon.common.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Brilliant
 */
@Component
public class UserRecordTask {

    @Autowired
    private RedisService redisService;

    @Scheduled(cron = "0 0 0 * * ?")
    public void task(){
        redisService.setCacheObject("userNumToDay",0);
    }
}
